package ar.com.photo_admin.service

import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

class BaseService implements  ApplicationContextAware {

	ApplicationContext applicationContext
	
	def sessionFactory
	
	//String SERVER_URL = "../images/upload/";
	String SERVER_URL = "/PhotoAdminGrailsApp/images/upload/"
	
	def getImagesRootPath(){
		return applicationContext.getResource("images/upload").getFile().toString() + File.separatorChar;
	}
		
}
